package cn.micai.base.thread;

import java.util.concurrent.Callable;

/**
 * 描述：
 * <p>
 *
 * @author: 赵新国
 * @date: 2018/6/7 18:05
 */
public class MultiplyingTask implements Callable {

    int a;
    int b;
    long sleepTime;

    public MultiplyingTask(int a, int b, long sleepTime) {
        this.a = a;
        this.b = b;
        this.sleepTime = sleepTime;
    }

    @Override
    public Object call() throws Exception {
        Thread.sleep(sleepTime);
        return a * b;
    }
}
